import {ImageFile, VideoFile, TextFile} from './Files';
import {Folder} from './Folder';
import separate from '../patternSeparator';
separate('组合模式');

let root = new Folder('根目录');
root.add(new ImageFile('花织锦.jpg'));
root.add(new VideoFile('你的名字.mp4'));
let workArea = new Folder('工作目录');
root.add(workArea);
let projA = new Folder('项目A');
projA.add(new TextFile('README.md'));
projA.add(new ImageFile('profile.jpg'));
let projB = new Folder('项目B');
projB.add(new TextFile('index.js'));
projB.add(new Folder('空目录'));
workArea.add(projA);
workArea.add(projB);

root.killVirus();